package com.itheima.reggie;

import com.itheima.reggie.util.SMSUtils;
import com.itheima.reggie.util.ValidateCodeUtils;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Test {
    public static void main(String[] args) {
        String phone="18895360896";
        String code = ValidateCodeUtils.generateValidateCode4String(4);
        System.out.println(code);
        SMSUtils.sendMessage(
                "阿里云短信测试",
                "SMS_154950909",
                phone,
                "1234"
        );
        System.out.println("");
       // log.info(code);
    }

}
